package com.myidis.response;

import com.myidis.entity.Quota;
import com.myidis.entity.QuotaData;
import com.myidis.entity.QuotaDataItem;

public class QuotaDataRes {
	private int id;
	private int frequency;
	private String time;
	private Quota quota;
	private QuotaDataItem dataItem;
	private double value;
	private String unit;
	
	public QuotaDataRes() {
	}
	
	public QuotaDataRes(QuotaData data, Quota quota, QuotaDataItem dataItem) {
		this.id = data.getId();
		this.frequency = data.getFrequency();
		this.time = data.getTime();
		this.quota = quota;
		this.dataItem = dataItem;
		this.value = data.getValue();
		this.unit = data.getUnit();
	}
	
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public int getFrequency() {
		return frequency;
	}
	public void setFrequency(int frequency) {
		this.frequency = frequency;
	}
	public String getTime() {
		return time;
	}
	public void setTime(String time) {
		this.time = time;
	}
	public Quota getQuota() {
		return quota;
	}
	public void setQuota(Quota quota) {
		this.quota = quota;
	}
	public QuotaDataItem getDataItem() {
		return dataItem;
	}
	public void setDataItem(QuotaDataItem dataItem) {
		this.dataItem = dataItem;
	}
	public double getValue() {
		return value;
	}
	public void setValue(double value) {
		this.value = value;
	}
	public String getUnit() {
		return unit;
	}
	public void setUnit(String unit) {
		this.unit = unit;
	}
}
